
module "a-to-10-1-1-24" {
  source = "../../modules/hybrid/dns_multi/deeproute.cn"

  type  = "A"
  value = "10.1.1.24"
  ttl   = 3600

  rrs = [
    "cicd-alertmanager",
    "cicd-demo",
    "cicd-prometheus",
    "test-ndt-server",
  ]
}

# TODO
# cicd-test-demo 3600 CNAME test-lb-haproxy.deeproute.cn.
# cicd-test-demo.deeproute.cn 3600 CNAME  test-lb-haproxy.deeproute.cn.

module "cicd-test-alertmanager" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "cicd-test-alertmanager"
  type  = "A"
  ttl   = 3600
  value = "10.9.9.28"
}

module "cicd-test-consul" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "cicd-test-consul"
  type  = "A"
  ttl   = 3600
  value = "10.9.9.28"
}

module "cicd-test-elasticsearch" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "cicd-test-elasticsearch"
  type  = "A"
  ttl   = 3600
  value = "10.9.9.134"
}

module "cicd-test-grafana" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "cicd-test-grafana"
  type  = "A"
  ttl   = 3600
  value = "10.9.9.28"
}

module "cicd-test-kafka" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "cicd-test-kafka"
  type  = "A"
  ttl   = 3600
  value = "10.9.9.130"
}

module "cicd-test-kibana" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "cicd-test-kibana"
  type  = "A"
  ttl   = 3600
  value = "10.9.9.134"
}

module "cicd-test-ops-heketi" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "cicd-test-ops-heketi"
  type  = "A"
  ttl   = 3600
  value = "10.9.9.28"
}

module "cicd-test-pgadmin" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "cicd-test-pgadmin"
  type  = "A"
  ttl   = 3600
  value = "10.9.9.28"
}

module "cicd-test-prometheus" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "cicd-test-prometheus"
  type  = "A"
  ttl   = 3600
  value = "10.9.9.28"
}

module "cicd-test-prometheusalert" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "cicd-test-prometheusalert"
  type  = "A"
  ttl   = 3600
  value = "10.9.9.28"
}

module "cicd-test-victoria-metrics" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "cicd-test-victoria-metrics"
  type  = "A"
  ttl   = 3600
  value = "10.9.9.28"
}
